import HTTP from '../../../../utils/http.js';
import { API, API_GENERATE } from '../../../../config/api.js';
class QuoteService {
	//报价历史记录
	quoteHistoryList(sendData = {}) {
		return HTTP.POST(API_GENERATE(API.QUOTE_HISTORY_LIST), sendData)
	}
	//报价列表
	quoteList(sendData = {}) {
		return HTTP.POST(API_GENERATE(API.QUOTE_LIST), sendData)
	}
	//报价列表（已完成）
	quoteListFinish(sendData = {}) {
		return HTTP.POST(API_GENERATE(API.QUOTE_LIST_FINISH), sendData)
	}
	//删除报价
	quoteRemove(sendData = {}) {
		return HTTP.POST(API_GENERATE(API.QUOTE_REMOVE), sendData)
	}
	//新增报价
	quoteAdd(sendData = {}) {
		return HTTP.POST(API_GENERATE(API.QUOTE_ADD), sendData)
	}
	//撤消报价
	quoteCancel(sendData = {}) {
		return HTTP.POST(API_GENERATE(API.QUOTE_CANCEL), sendData)
	}
	//批量新增
	quoteAddAll(sendData = {}) {
		return HTTP.POST(API_GENERATE(API.QUOTE_ADD_ALL), sendData)
	}
	// 状态显示
	quoteStatus(sendData = {}) {
		return HTTP.GET(API_GENERATE(API.APPROVAL_NODE), sendData)
	}
	//查询用户授权机构
	findSq() {
		return HTTP.GET(API_GENERATE(API.APPROVAL_SQ))
	}
}
module.exports = new QuoteService();